home *** CD-ROM | disk | FTP | other *** search
- package com.ibm.xml.framework;
-
- import com.ibm.xml.internal.DefaultAttrPool;
- import com.ibm.xml.internal.DefaultElementDeclPool;
- import com.ibm.xml.internal.DefaultEntityPool;
- import com.ibm.xml.internal.DefaultStringPool;
-
- public final class ParserState {
- private static final boolean USE_CHAR_READER_FOR_UTF8 = true;
- private XMLParser fParser;
- private StringPool fStringPool;
- private AttrPool fAttrPool;
- private EntityPool fEntityPool;
- private EntityPool fParameterEntityPool;
- private ElementDeclPool fElementDeclPool;
-
- ParserState(XMLParser var1) {
- this.fParser = var1;
- }
-
- ParserState(ParserState var1) {
- this.fParser = var1.fParser;
- this.fStringPool = var1.fStringPool.resetOrCopy(this);
- this.fAttrPool = var1.fAttrPool.resetOrCopy(this);
- this.fEntityPool = var1.fEntityPool.resetOrCopy(this);
- if (var1.fParameterEntityPool != null) {
- this.fParameterEntityPool = var1.fParameterEntityPool.resetOrCopy(this);
- }
-
- this.fElementDeclPool = var1.fElementDeclPool.resetOrCopy(this);
- }
-
- void reset() {
- this.fStringPool.reset(this);
- this.fAttrPool.reset(this);
- this.fEntityPool.reset(this);
- if (this.fParameterEntityPool != null) {
- this.fParameterEntityPool.reset(this);
- }
-
- this.fElementDeclPool.reset(this);
- }
-
- ParserState resetOrCopy() {
- return new ParserState(this);
- }
-
- public XMLScanner getScanner() {
- return this.fParser.getScanner();
- }
-
- public boolean getAllowJavaEncodingName() {
- return this.fParser.getAllowJavaEncodingName();
- }
-
- public boolean getWarningOnDuplicateAttDef() {
- return this.fParser.getWarningOnDuplicateAttDef();
- }
-
- public boolean getCheckNamespace() {
- return this.fParser.getCheckNamespace();
- }
-
- public boolean getUseCharReaderForUTF8() {
- return true;
- }
-
- public XMLDocumentHandler getDocumentHandler() {
- return this.fParser.getDocumentHandler();
- }
-
- public XMLDocumentTypeHandler getDocumentTypeHandler() {
- return this.fParser.getDocumentTypeHandler();
- }
-
- public XMLEntityHandler getEntityHandler() {
- return this.fParser.getEntityHandler();
- }
-
- public XMLErrorHandler getErrorHandler() {
- return this.fParser.getErrorHandler();
- }
-
- public XMLValidationHandler getValidationHandler() {
- return this.fParser.getValidationHandler();
- }
-
- public StringPool cacheStringPool() {
- return this.fStringPool;
- }
-
- public StringPool getStringPool() {
- return this.fStringPool;
- }
-
- public void setStringPool(StringPool var1) {
- this.fStringPool = var1;
- }
-
- public void useDefaultStringPool() {
- this.fStringPool = new DefaultStringPool(this);
- }
-
- public AttrPool cacheAttrPool() {
- return this.fAttrPool;
- }
-
- public AttrPool getAttrPool() {
- return this.fAttrPool;
- }
-
- public void setAttrPool(AttrPool var1) {
- this.fAttrPool = var1;
- }
-
- public void useDefaultAttrPool() {
- this.fAttrPool = new DefaultAttrPool(this);
- }
-
- public EntityPool getEntityPool() {
- return this.fEntityPool;
- }
-
- public void setEntityPool(EntityPool var1) {
- this.fEntityPool = var1;
- }
-
- public void useDefaultEntityPool() {
- this.fEntityPool = new DefaultEntityPool(this, true);
- }
-
- public EntityPool getParameterEntityPool() {
- return this.fParameterEntityPool;
- }
-
- public void setParameterEntityPool(EntityPool var1) {
- this.fParameterEntityPool = var1;
- }
-
- public ElementDeclPool cacheElementDeclPool() {
- return this.fElementDeclPool;
- }
-
- public ElementDeclPool getElementDeclPool() {
- return this.fElementDeclPool;
- }
-
- public void setElementDeclPool(ElementDeclPool var1) {
- this.fElementDeclPool = var1;
- }
-
- public void useDefaultElementDeclPool() {
- this.fElementDeclPool = new DefaultElementDeclPool(this);
- }
- }
-